<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<base href="<%=basePath%>" />
<meta charset="UTF-8">
<title>ueditor</title>
</head>
<body>

	<!-- 加载编辑器的容器 -->
	<script id="container" name="content" type="text/plain" style="width:630px; margin:0px auto; border-radious:0px;">
	分享你开心的一刻！！！    
	</script>
    <input type="button" value="发送" onclick="sendMsg()"/>
	<!-- 配置文件 -->
	<script type="text/javascript" src="uedit/ueditor.config.js"></script>
	<!-- 编辑器源码文件 -->
	<script type="text/javascript" src="uedit/ueditor.all.js"></script>
	<!-- 实例化编辑器 -->
	<script type="text/javascript">
		var ue = UE.getEditor('container',{
            //这里可以选择自己需要的工具按钮名称,此处仅选择如下五个
            toolbars:[['emotion']],
            //focus时自动清空初始化时的内容
            autoClearinitialContent:true,
            //关闭字数统计
            wordCount:false,
            //关闭elementPath
            elementPathEnabled:false,
            //默认的编辑区域高度
            initialFrameHeight:100,
            //更多其他参数，请参考ueditor.config.js中的配置项
            serverUrl: '/server/ueditor/controller.php'
        })
        
        function sendMsg(){
			alert(ue.getContent())
		}

	</script>
</body>
</html>
